#!/bin/bash
echo "Start of set_proxy.sh"
echo "Set proxy"

PROXY="proxy2.yourict.net:8080"

echo -e "Acquire::http::proxy \"http://$PROXY\";" >> /etc/apt/apt.conf
echo -e "Acquire::https::proxy \"https://$PROXY\";" >> /etc/apt/apt.conf

echo "http_proxy=http://$PROXY" >> /etc/environment
echo "https_proxy=https://$PROXY" >> /etc/environment

echo "http_proxy=http://$PROXY" >> /etc/wgetrc

export http_proxy="http://$PROXY"
export https_proxy="https://$PROXY"
export HTTPS_PROXY="https://$PROXY"

echo "End of set_proxy.sh"
